/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.attence;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.attence.Duty;

/**
 * @author Administrator (email:raulcsj@163.com)
 * @since 2013-01-31
 */
public interface DutyService {

    /****************************************
     * Insert a instace of Duty
     ****************************************/
    void insert(Duty duty) throws Exception;

    /****************************************
     * Insert instaces of Duty
     ****************************************/
    void batchInsert(Duty duty) throws Exception;

    /****************************************
     * Delete a instace of Duty
     ****************************************/
    void delete(Duty duty) throws Exception;

    /****************************************
     * Delete instaces of Duty
     ****************************************/
    void batchDelete(Duty duty) throws Exception;

    /****************************************
     * Update a instace of Duty
     ****************************************/
    void update(Duty duty) throws Exception;

    /****************************************
     * Query instaces of Duty
     ****************************************/
    List<BaseModel> queryAsList(Duty duty) throws Exception;

    /****************************************
     * Query a instaces of Duty
     ****************************************/
    BaseModel queryAsObject(Duty duty) throws Exception;
}
